﻿<UserControl x:Class="Project.ViewDeclarationContent"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
              Height="800" Width="900" xmlns:my="clr-namespace:CustomControls;assembly=CustomControls"
             xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit">
    <UserControl.Resources>
        <DataTemplate x:Key="QuestionItemTemplate">
            <Border Width="797" Height="Auto" BorderBrush="#69810E" BorderThickness="0,0,0,1">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Name="QuestionNum" Width="Auto" Margin="3,0,0,0" Text="{Binding Path=NumberOfQuestion, StringFormat='\{0}.-'}" />
                    <TextBlock Width="290" TextWrapping="Wrap" Margin="3,0,0,0" Text="{Binding Question}" ToolTip="Pregunta"/>
                    <TextBlock Width="430" TextWrapping="Wrap" Margin="10,0,0,0" Text="{Binding Path=Answer, StringFormat='-> R: {0}' }"  ToolTip="Respuesta" />
                </StackPanel>
            </Border>
        </DataTemplate>
    </UserControl.Resources>
    <Grid Name="ContentGrid" VerticalAlignment="Top" HorizontalAlignment="Left" Width="900" Height="800">
        <GroupBox Header="Datos Personales" Height="236" HorizontalAlignment="Left" Margin="36,87,0,0" Name="PersonInfo" VerticalAlignment="Top" Width="805">
            <Grid Name="PersonalInfo">
                <Label Content="Nombre:" Height="28" HorizontalAlignment="Left" Margin="10,15,0,0" Name="lblName" VerticalAlignment="Top" />
                <Label Content="Apellido paterno:" Height="28" HorizontalAlignment="Left" Margin="10,49,0,0" Name="lblLastName" VerticalAlignment="Top" />
                <Label Content="Apellido materno:" Height="28" HorizontalAlignment="Left" Margin="10,83,0,0" Name="lblMiddleName" VerticalAlignment="Top" />
                <Label Height="23" HorizontalAlignment="Left" Margin="65,16,0,0"  Name="tbActorName"  VerticalAlignment="Top" Width="196" FontWeight="Bold" />
                <Label Height="23" HorizontalAlignment="Left" Margin="109,49,0,0"  Name="tbActorLastName"  VerticalAlignment="Top" Width="196" FontWeight="Bold" />
                <Label Height="23" HorizontalAlignment="Left" Margin="110,83,0,0"  Name="tbActorMiddleName"  VerticalAlignment="Top" Width="196" FontWeight="Bold" />
                <Label Height="23" HorizontalAlignment="Left" Margin="393,83,0,0"  Name="tbActorZone"  VerticalAlignment="Top" Width="192" FontWeight="Bold" />
                <Label Height="23" HorizontalAlignment="Left" Margin="408,16,0,0"  Name="tbActorPhone" VerticalAlignment="Top" Width="136" FontWeight="Bold" />
                <Label Content="CI/Pasaporte:" Height="28" HorizontalAlignment="Left" Margin="10,117,0,0" Name="lblCI" VerticalAlignment="Top" />
                <Label Height="23" HorizontalAlignment="Left" Margin="86,117,0,0" Name="tbActorCI" VerticalAlignment="Top" Width="106" FontWeight="Bold" />
                <Label Height="23" HorizontalAlignment="Left" Margin="432,121,0,0" Name="cboxActorCountry" VerticalAlignment="Top" Width="162" FontWeight="Bold" />
                <Label Height="23" HorizontalAlignment="Left" Margin="455,153,0,0"  Name="tbActorWorkPlace" VerticalAlignment="Top" Width="196" FontWeight="Bold" />
                <Label Content="Lugar de Trabajo:" Height="28" HorizontalAlignment="Left" Margin="356,153,0,0" Name="lblJob" VerticalAlignment="Top" Width="100" />
                <Label Content="Zona:" Height="28" HorizontalAlignment="Left" Margin="356,83,0,0" Name="lblZone" VerticalAlignment="Top" />
                <Label Content="Nacionalidad:" Height="28" HorizontalAlignment="Left" Margin="353,121,0,0" Name="lblCharacter" VerticalAlignment="Top" />
                <Label Content="Teléfono:" Height="28" HorizontalAlignment="Left" Margin="353,17,0,0" Name="lblPhone" VerticalAlignment="Top" />
                <Label Content="Estado Civil:" Height="28" HorizontalAlignment="Left" Margin="353,51,0,0" Name="label35" VerticalAlignment="Top" />
                <Label  Height="23" HorizontalAlignment="Left" Margin="422,52,0,0" Name="cbActorCivilStatus" VerticalAlignment="Top" Width="162" FontWeight="Bold">
                </Label>
                <Label Height="23" HorizontalAlignment="Left" Margin="68,150,0,0" Name="tbActorAddress"  VerticalAlignment="Top" Width="266" FontWeight="Bold" />
                <Label Content="Direccion: " Height="28" HorizontalAlignment="Left" Margin="10,150,0,0" Name="label3" VerticalAlignment="Top" />
            </Grid>
        </GroupBox>
        <Label Content="Declarante:" FontSize="14" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="36,60,0,0" Name="label2" VerticalAlignment="Top" />
        <Border BorderBrush="#5C5C5C" BorderThickness="2,4,2,4" Height="140" HorizontalAlignment="Left" Margin="36,353,0,0" Name="bord" VerticalAlignment="Top" Width="805">
            <Grid>
                <TextBlock Height="20" Name="textBlock1" Margin="20,20,0,0" HorizontalAlignment="Left" Text="La persona con las generales de ley arriba registradas, a horas:" VerticalAlignment="Top" Width="336" />
                <TextBlock Height="23" HorizontalAlignment="Left" Margin="398,20,0,0" Name="textBlock2" Text="Del dia de hoy: " VerticalAlignment="Top" />
                <Label Content="Label" Height="28" HorizontalAlignment="Left" FontWeight="Bold" Margin="480,20,0,0" Name="lblTodayDate" VerticalAlignment="Top" />
                <TextBlock Height="23" HorizontalAlignment="Left" Margin="20,46,0,0" Name="textBlock3" Text="Se presentó en las oficinas de la brigada de protección a la familia, para prestar su declaración informativa policial sobre el caso N°:" VerticalAlignment="Top" />
                <Label Content="Label" Height="28" HorizontalAlignment="Left" Margin="718,46,0,0" FontWeight="Bold" Name="lblCaseNum" VerticalAlignment="Top" />
                <TextBlock Height="23" HorizontalAlignment="Left" Margin="20,75,0,0" Name="textBlock4" Text="De violencia familiar en contra de:" VerticalAlignment="Top" />
                <Label Content="Label" Height="28" HorizontalAlignment="Left" Margin="205,75,0,0" FontWeight="Bold"  Name="lblAggressor" VerticalAlignment="Top" />
                <TextBlock Height="23" HorizontalAlignment="Left" Margin="20,104,0,0" Name="textBlock5" Text="Exortada(o) a  decir la verdad de los hechos manifiesto lo siguiente." VerticalAlignment="Top" />
                <Label Content="Label" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="355,20,0,0" Name="lblCurrentTime" VerticalAlignment="Top" />
            </Grid>
        </Border>
        <ListBox Height="134" HorizontalAlignment="Left" ItemTemplate="{StaticResource QuestionItemTemplate}" ItemsSource="{Binding}" Margin="34,546,0,0" Name="listBoxQuestions" VerticalAlignment="Top" Width="816" />
        <Label Name="lblQuestionsTitle" Content="Preguntas:" Height="20" FontSize="14" FontWeight="Light" HorizontalAlignment="Left" Margin="34,524,0,0" VerticalAlignment="Top" />
        <Label Content="Label" FontWeight="Bold" Height="18" HorizontalAlignment="Left" Margin="108,62,0,0" Name="lblDeclarantType" VerticalAlignment="Top" />
        <Label Content="Numero de Caso:" FontSize="20" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="36,12,0,0" Name="label28" VerticalAlignment="Top" />
        <Label Content="" FontSize="32" FontWeight="Light" Height="45" HorizontalAlignment="Left" Margin="194,3,0,0" Name="lblCaseNumber" VerticalAlignment="Top" />
        <Label Content="Fecha de Registro:" FontSize="20" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="360,13,0,0" Name="label39" VerticalAlignment="Top" />
        <Label Content="11/11/2011" FontSize="18" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="526,16,0,0" Name="lblRegistrationDate" VerticalAlignment="Top" />
        <Button Height="41" HorizontalAlignment="Left" Margin="727,710,0,0" Name="btnPrint" ToolTip="Imprimir la denuncia" VerticalAlignment="Top" Width="114" Click="btnPrint_Click">
            <StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Margin="4,0,0,0" Text="IMPRIMIR" VerticalAlignment="Center" />
                    <Image Height="27" Margin="7,0,0,0" Name="prntImg" Source="Images/Print.gif" VerticalAlignment="Center" />
                    <Image Margin="3,0,3,0" Source="Images/DrpDwn.gif" />
                </StackPanel>
                <xctk:DropDownButton Height="0" Margin="-6,0,0,-6" Name="DrpDownPrintOptions" VerticalAlignment="Bottom">
                    <xctk:DropDownButton.DropDownContent>
                        <StackPanel Width="114">
                            <MenuItem Click="PrintPreview_Click" FontSize="12" Header="Vista Preliminar" Name="PrintPreview" />
                            <MenuItem Click="Print_Click" FontSize="12" Header="Imprimir" Name="Print" />
                        </StackPanel>
                    </xctk:DropDownButton.DropDownContent>
                </xctk:DropDownButton>
            </StackPanel>
        </Button>
        <Label Content="Asignada al caso:" FontSize="16" Height="28" HorizontalAlignment="Left" Margin="36,36,0,0" Name="label1" VerticalAlignment="Top" />
        <Label Content="Label" FontSize="12" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="160,40,0,0" Name="lblAsigned" VerticalAlignment="Top" />
    </Grid>
</UserControl>